<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<?php //register jqery
    Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/js/default.js");
?>  
<div class="row">
    <div class="span9">
        <div id="content">
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
    <div class="span3">
        <div id="sidebar">
        <?php
            $this->beginWidget('zii.widgets.CPortlet', array(
                'title'=>'Operations',
            ));
            $this->widget('bootstrap.widgets.TbMenu', array(
                'items'=>$this->menu,
                'htmlOptions'=>array('class'=>'operations'),
            ));
            $this->endWidget();
        ?>
        <?php echo CHtml::beginForm($name='list', $method='get'); //begin search form ?>
            <?php echo CHtml::textField('q', isset($_GET['q']) ? CHtml::encode($_GET['q']) : '', 
                    array('placeholder' => 'search'));?>
            <?php foreach ($_GET as $name => $get):?>
                <?php if($name == 'q' || $name == 'searchButton') {
                    continue;
                }else {?>
                <?php echo CHtml::hiddenField($name, CHtml::encode($get))?>
            <?php 
                }
            endforeach;?>
            <?php echo CHtml::submitButton('search', array('name' => 'searchButton'))?>
        <?php echo CHtml::endForm(); //end form?>
        
        </div><!-- sidebar -->
    </div>
</div>
<?php $this->endContent(); ?>